<?php

namespace Modules\Production\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SockConfirmRequest extends FormRequest
{
    /**
     * rules
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'order_id' => [
              'required',
            ],
            'material_no' => [
                'required',
            ],
            'qty' => [
                'required',
            ],
            'inv_id' => [
                'required',
            ],
            'lot_num' => [
                'required',
            ]
        ];
    }


    /**
     * messages
     *
     * @return string[]
     */
    public function messages(): array
    {
        return [
            'order_id.required' => '生产工单ID不能为空',
            'material_no.required' => '品号不能为空',
            'qty.required' => '扫描数量不能为空',
            'inv_id.required' => '库存ID不能为空',
            'lot_num.required' => '原始箱号不能为空',
        ];
    }
}
